Skip to content

Refactor extension - #30

Merged
riipandi merged 6 commits into
mainfrom
refactor-extension
Aug 21, 2026
Merged

riipandi merged 6 commits into
mainfrom
refactor-extension

Conversation

@riipandi

Copy link
Copy Markdown
Owner

Summary

Kind

  • Bug fix
  • Feature
  • Docs
  • Other (CI / refactor / pi port)

Tested

Update docs/ in this PR if CLI, crate API, config, or user-visible behavior changed.

@netlify

netlify Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for elph ready!

Name Link
🔨 Latest commit f4241ec
🔍 Latest deploy log https://app.netlify.com/projects/elph/deploys/6a88dccf843d050007efadf3
😎 Deploy Preview https://deploy-preview-30--elph.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Substantial and well-structured refactor, but the new host ABI breaks one reachable path: an extension command invoked with no arguments fails on the host side — see the inline comment on host.rs.

Reviewed changes

  • Replaced wasmtime + Component Model with wasmi core-Wasm interpreter and a JSON-in-linear-memory ABI (abi.rs, host.rs, new ui.rs, rewritten registry.rs).
  • New guest contract: exports memory/elph_alloc/elph_dealloc/elph_init/elph_on_event/elph_execute_command/elph_execute_tool; imports register_command/register_tool/subscribe/notify/confirm.
  • Manifest field renamed component → wasm; guests target wasm32-unknown-unknown, WASI rejected via a byte-scan heuristic; fuel-metered per call.
  • New elph-extension-pdk guest helper crate and rewritten ext-hello example; workspace exclude list extended; wasmi/wat deps, WIT world + bindings removed.
  • Harness integration: bind_to_harness registers extension tools and wires tool_call/tool_result/before_agent_start/session_start events.
  • Docs updated (new docs/extensions.md, archive refreshes, CI notes) and CI release.yml gains a zig-cc C-compiler wrapper for the musl target with RUSTC_WRAPPER disabled for that step.

Metadata note: the release workflow's musl C/C++ wrapper and sccache-disable were not deeply exercised here — they only run in the release cross-build.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash | 𝕏

Comment thread crates/elph-agent/src/plugins/host.rs Resolved
@riipandi
riipandi merged commit 60a85ac into main Aug 21, 2026
5 of 8 checks passed
@riipandi
riipandi deleted the refactor-extension branch August 21, 2026 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant